local table_insert = table.insert

local script = {
    [10] = function(fishes, fish, targets)
        local deads = {}
        local target
        for _, id in ipairs(targets) do
            local t = fishes[id]
            if t then
                if t.HuntedWeight < fish.HuntedWeight then
                    t:die(fish.DeadType, true)
                    table_insert(deads, id)
                end
            end
        end
        -- print("炸弹鱼处理..................")
        return deads, 1
    end,
    [11] = function(fishes, fish)
        local deads = {}
        for id, t in pairs(fishes) do
            if (t.PosIdx == fish.PosIdx) and (t.HuntedWeight < fish.HuntedWeight) then
                t:die(fish.DeadType, true)
                table_insert(deads, id)
            end
        end
        -- print("闪电鱼处理.................")
        return deads, 2
    end,
}

return script